package com.easylinkin.linkappapi.afterloan.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.easylinkin.linkappapi.afterloan.entity.AfterloanEnterpriseinfo;
import com.easylinkin.linkappapi.afterloan.service.AfterloanEnterpriseinfoService;
import com.easylinkin.linkappapi.elasticsearch.entity.BankAlarmNotice;
import com.easylinkin.linkappapi.elasticsearch.entity.BankEnergyAlarmRule;
import com.easylinkin.linkappapi.elasticsearch.mapper.BankAlarmNoticeMapper;
import com.easylinkin.linkappapi.elasticsearch.service.IBankAlarmRuleService;
import com.easylinkin.linkappapi.security.context.LinkappUserContextProducer;
import com.easylinkin.linkappapi.security.entity.LinkappUser;
import lombok.Data;
import lombok.Getter;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import java.util.stream.Stream;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.easylinkin.linkappapi.afterloan.entity.AfterloanRiskType;
import com.easylinkin.linkappapi.afterloan.mapper.AfterloanRiskTypeMapper;
import com.easylinkin.linkappapi.afterloan.service.AfterloanRiskTypeService;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;

@Service
public class AfterloanRiskTypeServiceImpl extends ServiceImpl<AfterloanRiskTypeMapper, AfterloanRiskType> implements AfterloanRiskTypeService{

    @Resource
    LinkappUserContextProducer linkappUserContextProducer;
    @Resource
    BankAlarmNoticeMapper bankAlarmNoticeMapper;

    /***
     * 根据企业查询分类及数量
     * @param afterloanRiskType
     * @return
     */
    @Override
    public List<AfterloanRiskType>  getTypeAndCount(AfterloanRiskType afterloanRiskType){
        return baseMapper.getTypeAndCount(afterloanRiskType);
    }

}
